﻿using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Driver;

namespace KY.Mongo
{
    public interface IMongoRepository
    {
        MongoClient client { get; set; }
        IMongoDatabase database { get; set; }
        IMongoCollection<BsonDocument> collection { get; set; }

        MongoDTO FindAsync(MongoDTO dTO);
        Task InsertAsync(MongoDTO dTO);
        void Setup();
        Task UpdateAsync(MongoDTO dTO);
    }
}